/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.camachosanchez.util;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author Rolando
 */
public class ConexionSQL {

    private static final String driver = "com.mysql.jdbc.Driver";
    //private static final String url = "jdbc:mysql://172.16.102.216:3306/tiresoft";
    private static final String url = "jdbc:mysql://localhost:3306/tiresoft";

    public static Connection obtenerConexion() {
        try {
            Class.forName(driver);
            return DriverManager.getConnection(url, Constantes.USER, Constantes.PASSWORD);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
